#{extends 'admin.html' /}
#{set title:'Administration : Vue d\'un article' /}

<article class="module width_3_quarter">
    <header><h3 class="tabs_involved">Administration des Articles</h3>
        <ul class="tabs">
            <li><a href="@{Articles.create}">Ajouter un article</a></li>
            <li><a href="@{Admin.index}">Accueil Administration</a></li>
        </ul>
    </header>

    <a href="@{Articles.list}">Retour</a>

    <br/><br/>
    <div class="news_admin">
        <img src="@{'/public/images/Articles'}/${entity.images}" alt=" Image ${entity.images} introuvable"/>
        <span><b>${entity.title}</b> - <i>le ${entity.created.format('dd MMM yy')}  par <b>${entity.user.username}</b> dans la catégorie <b>${entity.category.toString()}</b></i></span> <a id="input_edit" href="@{Articles.edit(entity.id)}">
            <input type="image" src="@{'/public/images/admin/icn_edit.png'}" title="Editer"></a><br/>
        <p>${entity.content}</p>
        #{if entity.updated != entity.created}
        <span><i>Mis à jour le : ${entity.updated.format('dd MMM yy')} à ${entity.updated.format('hh:mm')}</i></span>
        #{/if}
    </div>
    <br/>